package top.tangyh.lamp.care.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import static com.baomidou.mybatisplus.annotation.SqlCondition.EQUAL;
import static top.tangyh.lamp.model.constant.Condition.LIKE;
import top.tangyh.basic.base.entity.Entity;


/**
 * <p>
 * 实体类
 * 护理操作记录表
 * </p>
 *
 * @author zqb
 * @date 2024-07-18 14:10:32
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@Builder
@TableName("b_care_record")
public class BCareRecord extends Entity<Long> {


    /**
     * 项目名称
     */
    @TableField(value = "item_name", condition = LIKE)
    @Schema(description = "项目名称")
    private String itemName;
    /**
     * 项目值
     */
    @TableField(value = "item_value", condition = LIKE)
    @Schema(description = "项目值")
    private String itemValue;
    /**
     * 时间轴对应时间
     */
    @TableField(value = "mapped_time", condition = EQUAL)
    @Schema(description = "时间轴对应时间")
    private Long mappedTime;
    /**
     * 病人识别号
     */
    @TableField(value = "patient_ident", condition = LIKE)
    @Schema(description = "病人识别号")
    private String patientIdent;

    /**
     * 住院号
     */
    @TableField(value = "hospital_number", condition = LIKE)
    @Schema(description = "住院号")
    private String hospitalNumber;
    /**
     * 项目id
     */
    @TableField(value = "item_id", condition = EQUAL)
    @Schema(description = "项目id")
    private Long itemId;
    /**
     * 项目code
     */
    @TableField(value = "item_code", condition = LIKE)
    @Schema(description = "项目code")
    private String itemCode;
    /**
     * 是否删除 0否 1是 默认0
     */
    @TableField(value = "is_deleted", condition = EQUAL)
    @Schema(description = "是否删除 0否 1是 默认0")
    private Integer isDeleted;



}
